import axios from "./axios";
// 获取轮播图接口
export function swiperfn() {
    return axios({
        url: '/banner/list',
        method: 'get',
    });
}
//获取秒杀列表
export function seckillfn(data:{count:number,limitNum:number}) {
    return axios({
        url: '/pro/seckilllist',
        method: 'get',
        params:data
    });
}
//获取商品列表
export function getproduct(data:{count:number,limitNum:number}) {
    return axios({
        url: '/pro/list',
        method: 'get',
        params:data
    });
}
//获取商品详情
export function getdetail(data:{proid:string}) {
    return axios({
        url: `/pro/detail/${data.proid}`,
        method: 'get',
        params:data
    });
}